package com.example.JavaDemo.service.impl;



import com.example.JavaDemo.Mapper.NoticeMapper;
import com.example.JavaDemo.domain.Notice;
import com.example.JavaDemo.service.INoticeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.List;

@Service
public class NoticeServiceImpl  implements INoticeService {
   @Autowired
    private NoticeMapper noticeMapper;

    /**
     * 查询用户
     * @param notice
     * @return
     */
    @Override
    public List<Notice> selectNotice(Notice notice) {
        return noticeMapper.selectNotice(notice);
    }

    /**
     * 新增用户
     * @param notice
     */
    @Override
    public void insertNotice(Notice notice) {
        noticeMapper.insertNotice(notice);
    }

    /**
     * 修改用户
     * @param notice
     */
    @Override
    public void updateNoticeById(Notice notice) {
        noticeMapper.updateNoticeById(notice);
    }

    /**
     * 删除用户
     * @param id
     */
    @Override
    public void delNoticeById(String id) {
        noticeMapper.delNoticeById(id);
    }
}
